package com.dylan.magic.mybatis.pagehelper.storage.mapper;

import com.dylan.magic.mybatis.pagehelper.config.db.InsertSelectiveUseGeneratedKeysProvider;
import com.dylan.magic.mybatis.pagehelper.config.db.MissMapper;
import com.dylan.magic.mybatis.pagehelper.entity.po.SystemConfigPo;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;

public interface SystemConfigMapper extends MissMapper<SystemConfigPo> {

    @Options(useGeneratedKeys = true, keyProperty = "configId")
    @InsertProvider(type = InsertSelectiveUseGeneratedKeysProvider.class, method = "dynamicSQL")
    int insertSelectiveUseGeneratedKeys(SystemConfigPo record);
}